package com.zc.app.delegation;

/**
 * Created by User on 2017/6/8.
 */
public class ModelDuck extends Duck {
    public ModelDuck() {
        setFlyBehaviro(new FLyNoWay());
        setQuackBehavior(new Quack());
    }

    @Override
    public void display() {
        System.out.println("I'm a model duck");
    }
}
